using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class VUserResponseItem : GeneratedMessageLite<VUserResponseItem, VUserResponseItem.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<VUserResponseItem, VUserResponseItem.Builder>
		{
			private bool resultIsReadOnly;
			private VUserResponseItem result;
			protected override VUserResponseItem.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override VUserResponseItem MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override VUserResponseItem DefaultInstanceForType
			{
				get
				{
					return VUserResponseItem.DefaultInstance;
				}
			}
			public uint ID
			{
				get
				{
					return this.result.ID;
				}
				set
				{
					this.SetID(value);
				}
			}
			public string Desc
			{
				get
				{
					return this.result.Desc;
				}
				set
				{
					this.SetDesc(value);
				}
			}
			public SKBuiltinBuffer_t Icon
			{
				get
				{
					return this.result.Icon;
				}
				set
				{
					this.SetIcon(value);
				}
			}
			public SKBuiltinBuffer_t HDIcon
			{
				get
				{
					return this.result.HDIcon;
				}
				set
				{
					this.SetHDIcon(value);
				}
			}
			public Builder()
			{
				this.result = VUserResponseItem.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(VUserResponseItem cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private VUserResponseItem PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					VUserResponseItem other = this.result;
					this.result = new VUserResponseItem();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override VUserResponseItem.Builder Clear()
			{
				this.result = VUserResponseItem.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override VUserResponseItem.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new VUserResponseItem.Builder(this.result);
				}
				return new VUserResponseItem.Builder().MergeFrom(this.result);
			}
			public override VUserResponseItem BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override VUserResponseItem.Builder MergeFrom(IMessageLite other)
			{
				if (other is VUserResponseItem)
				{
					return this.MergeFrom((VUserResponseItem)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override VUserResponseItem.Builder MergeFrom(VUserResponseItem other)
			{
				return this;
			}
			public override VUserResponseItem.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override VUserResponseItem.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(VUserResponseItem._vUserResponseItemFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = VUserResponseItem._vUserResponseItemFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 8u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 8u)
						{
							this.result.hasID = input.ReadUInt32(ref this.result.iD_);
							continue;
						}
					}
					else
					{
						if (num3 == 18u)
						{
							this.result.hasDesc = input.ReadString(ref this.result.desc_);
							continue;
						}
						if (num3 == 26u)
						{
							SKBuiltinBuffer_t.Builder builder = SKBuiltinBuffer_t.CreateBuilder();
							if (this.result.hasIcon)
							{
								builder.MergeFrom(this.Icon);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.Icon = builder.BuildPartial();
							continue;
						}
						if (num3 == 34u)
						{
							SKBuiltinBuffer_t.Builder builder2 = SKBuiltinBuffer_t.CreateBuilder();
							if (this.result.hasHDIcon)
							{
								builder2.MergeFrom(this.HDIcon);
							}
							input.ReadMessage(builder2, extensionRegistry);
							this.HDIcon = builder2.BuildPartial();
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public VUserResponseItem.Builder SetID(uint value)
			{
				this.PrepareBuilder();
				this.result.hasID = true;
				this.result.iD_ = value;
				return this;
			}
			public VUserResponseItem.Builder ClearID()
			{
				this.PrepareBuilder();
				this.result.hasID = false;
				this.result.iD_ = 0u;
				return this;
			}
			public VUserResponseItem.Builder SetDesc(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasDesc = true;
				this.result.desc_ = value;
				return this;
			}
			public VUserResponseItem.Builder ClearDesc()
			{
				this.PrepareBuilder();
				this.result.hasDesc = false;
				this.result.desc_ = "";
				return this;
			}
			public VUserResponseItem.Builder SetIcon(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasIcon = true;
				this.result.icon_ = value;
				return this;
			}
			public VUserResponseItem.Builder SetIcon(SKBuiltinBuffer_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasIcon = true;
				this.result.icon_ = builderForValue.Build();
				return this;
			}
			public VUserResponseItem.Builder MergeIcon(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasIcon && this.result.icon_ != SKBuiltinBuffer_t.DefaultInstance)
				{
					this.result.icon_ = SKBuiltinBuffer_t.CreateBuilder(this.result.icon_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.icon_ = value;
				}
				this.result.hasIcon = true;
				return this;
			}
			public VUserResponseItem.Builder ClearIcon()
			{
				this.PrepareBuilder();
				this.result.hasIcon = false;
				this.result.icon_ = null;
				return this;
			}
			public VUserResponseItem.Builder SetHDIcon(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasHDIcon = true;
				this.result.hDIcon_ = value;
				return this;
			}
			public VUserResponseItem.Builder SetHDIcon(SKBuiltinBuffer_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasHDIcon = true;
				this.result.hDIcon_ = builderForValue.Build();
				return this;
			}
			public VUserResponseItem.Builder MergeHDIcon(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasHDIcon && this.result.hDIcon_ != SKBuiltinBuffer_t.DefaultInstance)
				{
					this.result.hDIcon_ = SKBuiltinBuffer_t.CreateBuilder(this.result.hDIcon_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.hDIcon_ = value;
				}
				this.result.hasHDIcon = true;
				return this;
			}
			public VUserResponseItem.Builder ClearHDIcon()
			{
				this.PrepareBuilder();
				this.result.hasHDIcon = false;
				this.result.hDIcon_ = null;
				return this;
			}
		}
		public const int IDFieldNumber = 1;
		public const int DescFieldNumber = 2;
		public const int IconFieldNumber = 3;
		public const int HDIconFieldNumber = 4;
		private static readonly VUserResponseItem defaultInstance;
		private static readonly string[] _vUserResponseItemFieldNames;
		private static readonly uint[] _vUserResponseItemFieldTags;
		private bool hasID;
		private uint iD_;
		private bool hasDesc;
		private string desc_ = "";
		private bool hasIcon;
		private SKBuiltinBuffer_t icon_;
		private bool hasHDIcon;
		private SKBuiltinBuffer_t hDIcon_;
		private int memoizedSerializedSize = -1;
		public static VUserResponseItem DefaultInstance
		{
			get
			{
				return VUserResponseItem.defaultInstance;
			}
		}
		public override VUserResponseItem DefaultInstanceForType
		{
			get
			{
				return VUserResponseItem.DefaultInstance;
			}
		}
		protected override VUserResponseItem ThisMessage
		{
			get
			{
				return this;
			}
		}
		public uint ID
		{
			get
			{
				return this.iD_;
			}
		}
		public string Desc
		{
			get
			{
				return this.desc_;
			}
		}
		public SKBuiltinBuffer_t Icon
		{
			get
			{
				return this.icon_ ?? SKBuiltinBuffer_t.DefaultInstance;
			}
		}
		public SKBuiltinBuffer_t HDIcon
		{
			get
			{
				return this.hDIcon_ ?? SKBuiltinBuffer_t.DefaultInstance;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasID && this.hasIcon && this.hasHDIcon && this.Icon.IsInitialized && this.HDIcon.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasID)
				{
					num += CodedOutputStream.ComputeUInt32Size(1, this.ID);
				}
				if (this.hasDesc)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.Desc);
				}
				if (this.hasIcon)
				{
					num += CodedOutputStream.ComputeMessageSize(3, this.Icon);
				}
				if (this.hasHDIcon)
				{
					num += CodedOutputStream.ComputeMessageSize(4, this.HDIcon);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private VUserResponseItem()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] vUserResponseItemFieldNames = VUserResponseItem._vUserResponseItemFieldNames;
			if (this.hasID)
			{
				output.WriteUInt32(1, vUserResponseItemFieldNames[2], this.ID);
			}
			if (this.hasDesc)
			{
				output.WriteString(2, vUserResponseItemFieldNames[0], this.Desc);
			}
			if (this.hasIcon)
			{
				output.WriteMessage(3, vUserResponseItemFieldNames[3], this.Icon);
			}
			if (this.hasHDIcon)
			{
				output.WriteMessage(4, vUserResponseItemFieldNames[1], this.HDIcon);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasID)
			{
				num ^= this.iD_.GetHashCode();
			}
			if (this.hasDesc)
			{
				num ^= this.desc_.GetHashCode();
			}
			if (this.hasIcon)
			{
				num ^= this.icon_.GetHashCode();
			}
			if (this.hasHDIcon)
			{
				num ^= this.hDIcon_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			VUserResponseItem vUserResponseItem = object_0 as VUserResponseItem;
			return vUserResponseItem != null && (this.hasID == vUserResponseItem.hasID && (!this.hasID || this.iD_.Equals(vUserResponseItem.iD_))) && (this.hasDesc == vUserResponseItem.hasDesc && (!this.hasDesc || this.desc_.Equals(vUserResponseItem.desc_))) && (this.hasIcon == vUserResponseItem.hasIcon && (!this.hasIcon || this.icon_.Equals(vUserResponseItem.icon_))) && (this.hasHDIcon == vUserResponseItem.hasHDIcon && (!this.hasHDIcon || this.hDIcon_.Equals(vUserResponseItem.hDIcon_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<VUserResponseItem, VUserResponseItem.Builder>.PrintField("ID", this.hasID, this.iD_, writer);
			GeneratedMessageLite<VUserResponseItem, VUserResponseItem.Builder>.PrintField("Desc", this.hasDesc, this.desc_, writer);
			GeneratedMessageLite<VUserResponseItem, VUserResponseItem.Builder>.PrintField("Icon", this.hasIcon, this.icon_, writer);
			GeneratedMessageLite<VUserResponseItem, VUserResponseItem.Builder>.PrintField("HDIcon", this.hasHDIcon, this.hDIcon_, writer);
		}
		public static VUserResponseItem ParseFrom(byte[] data)
		{
			return VUserResponseItem.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private VUserResponseItem MakeReadOnly()
		{
			return this;
		}
		public static VUserResponseItem.Builder CreateBuilder()
		{
			return new VUserResponseItem.Builder();
		}
		public override VUserResponseItem.Builder ToBuilder()
		{
			return VUserResponseItem.CreateBuilder(this);
		}
		public override VUserResponseItem.Builder CreateBuilderForType()
		{
			return new VUserResponseItem.Builder();
		}
		public static VUserResponseItem.Builder CreateBuilder(VUserResponseItem prototype)
		{
			return new VUserResponseItem.Builder(prototype);
		}
		static VUserResponseItem()
		{
			VUserResponseItem.defaultInstance = new VUserResponseItem().MakeReadOnly();
			VUserResponseItem._vUserResponseItemFieldNames = new string[]
			{
				"Desc",
				"HDIcon",
				"ID",
				"Icon"
			};
			VUserResponseItem._vUserResponseItemFieldTags = new uint[]
			{
				18u,
				34u,
				8u,
				26u
			};
			object.ReferenceEquals(micromsg.Proto.VUserResponseItem.Descriptor, null);
		}
	}
}
